package aufgabe1.teilaufgabe2;

/**
 * Author: Redenius, Winter
 */

public class Knoten {

	private Knoten Prev;
	private Knoten Next;
	private int Info;

	public Knoten(int info) {
		this.Info = info;
		this.Next = null;
		this.Prev = null;
	}// constructor

	public int getInfo() {
		return Info;
	}// getInfo

	public void setPrev(Knoten prev) {
		Prev = prev;
	}// setPrev

	public Knoten getPrev() {
		return Prev;
	}// getPrev

	public void setNext(Knoten next) {
		Next = next;
	}// setNext

	public Knoten getNext() {
		return Next;
	}// getNext

	public boolean hasNext() {
		return this.Next != null;
	}// hasNext

}// knoten
